/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-common
*
* @File name : RequestLimit.java
*
* @Author : Administrator
*
* @Date : 2017年7月11日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年7月11日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.information.constant;

import org.springframework.core.Ordered;  
import org.springframework.core.annotation.Order;  
import java.lang.annotation.*;  

/**
*
* @author Administrator
* TODO description
* @date 2017年7月11日
*/
@Retention(RetentionPolicy.RUNTIME)  
@Target(ElementType.METHOD)  
@Documented  
//最高优先级  
@Order(Ordered.HIGHEST_PRECEDENCE)  
public @interface RequestLimit {  
    /** 
     * 
     * 允许访问的次数，默认值MAX_VALUE 
     */  
    int count() default Integer.MAX_VALUE;  
  
    /** 
     * 
     * 时间段，单位为毫秒，默认值一分钟 
     */  
    long time() default 60000;  
}  
